package com.jy.fxf_phone.service;

import android.app.Service;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.support.annotation.Nullable;

import com.jy.fxf_phone.utils.BGMPlay;

/**
 * Created by JY on 2016/11/21.
 */
public class BGMService extends Service {

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        BGMPlay.getInstance().startSound();

    }

    @Override
    public void unbindService(ServiceConnection conn) {
        super.unbindService(conn);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        BGMPlay.getInstance().stopSound();

    }
}
